package com.xcity.db.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xcity.db.entity.Mail;

import naga.x.db.IMapper;

public interface MailMapper extends IMapper<Mail> {
	
	String STATEMENT_FIND_BY_PLAYER = MailMapper.class.getName() + ".getByPlayerId";
	String STATEMENT_DELETE_BY_TYPE = MailMapper.class.getName() + ".batchDelete";
	String STATEMENT_DELETE_EXPIRE = MailMapper.class.getName() + ".deleteExpire";
//	String STATEMENT_FIND_LIMIT = MailMapper.class.getName() + ".findLimit";
	
	List<Mail> getByPlayerId(@Param("playerId") long playerId, @Param("offset") int offset, @Param("count") int count);
	int batchDelete(@Param("destId") long playerId, @Param("type") byte type);
	int deleteExpire();
}
